<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<jsp:include page="/WEB-INF/views/common/header.jsp" />

<script type="text/javascript" src="<c:out value="${pageContext.request.contextPath}"/>/resources/js/repair_create_popup.js"></script>

</head>
<body>
	<jsp:include page="/WEB-INF/views/main/menu.jsp" />

	<div class="container">
		<div class="page-header">
			<h3>수리처 기준정보</h3>
		</div>
		<form class="form-inline">
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="repair_center" style="width: 100px">수리처</label> 
						<input type="text" class="form-control" id="repair_center_code" placeholder="수리처 코드" disabled>
						<div class="input-group">
							<input type="text" class="form-control" id="repair_center_name" placeholder="수리처 명" disabled> 
							<span class="input-group-btn"> 
								<input type="button" class="btn btn-primary btn-sm" id="repair_center_btn" value="선택" />
							</span>
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="repair_center_info_item" style="width: 100px;">품목</label> 
						<input type="text" class="form-control" id="repair_center_item_code" placeholder="품목 코드" disabled>
						<div class="input-group">
							<input type="text" class="form-control" id="repair_center_item_name" placeholder="품목 명" disabled> 
							<span class="input-group-btn"> 
								<input type="button" class="btn btn-primary btn-sm" id="repair_center_info_item_btn" value="선택" />
							</span>
						</div>
					</div>
				</div>
			</div>
			<p />
			<div class="row">
				<div class="col-sm-4">
					<div class="form-group form-group-sm">
						<label class="control-label" for="warranty_term" style="width: 100px">보증기간</label>
						<input type="text" class="form-control" id="warranty_term" size="39">
					</div>
				</div>
				<div class="col-sm-1">
					<a href=""><input type="button" class="btn btn-primary btn-sm btn-block" id="warranty_term_processing" value="일괄처리"></a>
				</div>
				<div class="col-sm-4 col-sm-offset-1">
					<div class="form-group form-group-sm">
						<label class="control-label" for="nft_unit_price" style="width: 100px">NFT단가</label>
						<input type="text" class="form-control" id="nft_unit_price" size="39">
					</div>
				</div>
				<div class="col-sm-1">
					<a href=""><input type="button" class="btn btn-primary btn-sm btn-block" id="nft_unit_price_processing" value="일괄처리"></a>
				</div>
			</div>
			<p />
			<div class="row">
				<div class="col-sm-2">
					<a href=""><input type="button" class="btn btn-primary btn-sm btn-block" id="repair_center_add" value="수리처 등록"></a>
				</div>
			</div>
			<p />
			<hr />
		</form>
		<p />
		<!--
			<div class="fixed-table-container">
			<div style="overflow-x:auto">
			<div class="table-responsive">
			-->
		<!-- 
			<table data-toggle="table" data-url="<c:out value="${pageContext.request.contextPath}"/>/resources/test_data/data.json" data-height="400" data-side-pagination="server" data-pagination="true" data-page-list="[5, 10, 20, 50, 100]" data-search="false">
			 -->
		<table data-toggle="table"
			<%-- data-url="<c:out value="${pageContext.request.contextPath}"/>/resources/test_data/data.json" --%>
			data-height="400" data-pagination="true" data-search="false">
			<thead>
				<tr>
					<th data-field="state" data-checkbox="true"></th>
					<th data-field="no" data-align="center">No</th>
					<th data-field="repair_center" data-align="center">수리처</th>
					<th data-field="repair_center_name" data-align="center">수리처명</th>
					<th data-field="item_code" data-align="center">품목</th>
					<th data-field="item_name" data-align="center">품명</th>
					<th data-field="shipments_day" data-align="center">출하일자</th>
					<th data-field="warranty_term" data-align="center">보증기간</th>
					<th data-field="deadline" data-align="center">납기일</th>
					<th data-field="renovating_term" data-align="center">재수리기간(월)</th>
					<th data-field="delay" data-align="center">지체율</th>
					<th data-field="unit_price" data-align="center">단가</th>
					<th data-field="NFT_unit_price" data-align="center">NFT단가</th>
					<th data-field="contract_check" data-align="center">계약여부</th>
					<th data-field="apply_date" data-align="center">적용일자</th>
				</tr>
			</thead>
		</table>
	</div>
	<div class="modal fade" role="dialog" id="modalDiv">
		<div class="modal-dialog">
			<div class="modal-content"></div>
		</div>
	</div>
</body>
</html>